<?php
class TUserName extends TTemplateControl{
	public function onLoad($param){
		parent::onLoad($param);
	}
	public function getUserName(){
		$this->ensureChildControls();
        return $this->getRegisteredObject('UserName');
	}
	public function getStatus(){
		$this->ensureChildControls();
        return $this->getRegisteredObject('Status');
	}
	public function setSkinID($value){
		$this->UserName->SkinID = $value;
		$this->Label->SkinID = $value;
		$this->Status->SkinID = $value;
		$this->Validator->SkinID = $value;
	}
	public function showStatus($sender,$param){
		if($this->UserName->Text)
			$this->Status->Text = "Username Exists";
		else
			$this->Status->Text =  "";
	}
	public function setForColor($value){
		$this->Status->ForeColor = $value;
	}
	public function setLabel($value){
		$this->Label->Text = $value;
	}
	public function setValidationGroup($value){
		$this->Validator->ValidationGroup=$value;
		$this->UserName->ValidationGroup=$value;
	}
}
?>